[XEN][POWERPC] Allocated wrong order for dummy page
authorJimi Xenidis <jimix@watson.ibm.com>
Tue, 26 Sep 2006 16:44:20 +0000 (12:44 -0400)
committerJimi Xenidis <jimix@watson.ibm.com>
Tue, 26 Sep 2006 16:44:20 +0000 (12:44 -0400)
This patch makes sure that the dummy page is only 4k not 8k.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : .0%3E%AC%CE2%E5%FD%3F%7B%16%C9/%F04%B7%11%7E%1D_

xen/arch/powerpc/dart.c

index fef8efa322fe1c7b45b1f364cb7d29624de77c48..63db568503e0492fe8bcf6af9a5a3941a464a2fe 100644 (file)
@@ -60,8 +60,8 @@ union dart_entry {
     u32 de_word;
     struct {
         u32 de_v:1;             /* valid */
-        u32 de_rp:1;             /* read protected*/
-        u32 de_wp:1;             /* write protected*/
+        u32 de_rp:1;             /* read protected */
+        u32 de_wp:1;             /* write protected */
         u32 _de_res:5;
         u32 de_ppn:24;         /* 24 bit Physical Page Number
                                  * representing address [28:51] */
@@ -98,7 +98,6 @@ static u32 dart_encode(int perm, ulong rpn)
     if (perm & DART_WRITE) {
         e.de_bits.de_wp = 0;
     }
-
     return e.de_word;
 }
 
@@ -263,7 +262,7 @@ static int init_dart(void)
 
     /* Linux uses a dummy page, filling "empty" DART entries with a
        reference to this page to capture stray DMA's */
-    dummy_page = (ulong)alloc_xenheap_pages(1);
+    dummy_page = (ulong)alloc_xenheap_pages(0);
     clear_page((void *)dummy_page);
     dummy_page >>= PAGE_SHIFT;